package cn.zhukelili.doubledispatch;

/**
 * @Description: 场景类
 * @Auther: hongheshou
 * @Date: 2018/7/24 17:52
 */
public class Client {
    public static void main(String[] args) {
        //定义一个演员
        AbsActor actor = new OldActor();
        //定义一个角色
        Role role = new KungFuRole();
        //开始演戏
        actor.act(role);
        actor.act(new KungFuRole());
    }
}
